package com.sun.mapper;

import com.sun.pojo.User;
import com.sun.pojo.UserDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author SunRui
 * @description User Dao层
 * @date 2024/10/3 20:35
 */
@Mapper
public interface UserMapper {
    /*
    新增
     */
    int addUser(@Param("user") User user);

    /*
    删除
     */
    int delete(@Param("id") int id);

    /*
    修改
     */
    int update(@Param("user") User user);
    /*
    查询
     */
    List<UserDTO> select();
}
